window.app = {};

app.baseUrl = "http://" + location.host;
app.redirectGet = function (type) {
    var currentUrl = window.location.href.split('?');
    if (currentUrl.length >= 2) {
        currentUrl = currentUrl[1];
    } else {
        currentUrl = '';
    }
    return "http://" + location.host + "/" + type + "/?" + currentUrl;
}